package com.sdk;

import com.unity3d.player.UnityPlayer;

public class SDKUtility {
	public class SDKFUNTYPE {
		public static final int INIT = 0;
		public static final int LOGIN = INIT + 1;
		public static final int LOGOUT = LOGIN + 1;
		public static final int PAY = LOGOUT + 1;
		public static final int ZHIFUBAOPAY = PAY + 1;
		public static final int GETPLATFORM = ZHIFUBAOPAY + 1;
		public static final int SENDROLEINFO=GETPLATFORM+1;
		public static final int SETOPENLOG=SENDROLEINFO+1;
		public static final int SHARE=SETOPENLOG+1;
		public static final int ONPROFILESIGNIN=SHARE+1;
		public static final int ONPROFILESIGNOFF=ONPROFILESIGNIN+1;
		public static final int UMENGPAY=ONPROFILESIGNOFF+1;
		public static final int UPDATEGAME=UMENGPAY+1;
		public static final int GETAPKVERSION=UPDATEGAME+1;
		public static final int UMReport = GETAPKVERSION+1;
		public static final int QGROLE = UMReport+1;
		public static final int QGPAY = QGROLE+1;
		public static final int QGCreateRole = QGPAY+1;
	}

	public class CALLBACKFUNCTIONNAME {
		public static final String LOGINCALLBACK = "LoginSuccessCallBack";
		public static final String SETPLATFORM = "SetPlatformCallBack";
		public static final String PAYCALLBACK = "PayCallBack";
		public static final String SHOWLOGCALLBACK = "ShowLogCallBack";
		public static final String GETVERSIONCALLBACK = "GetVersionCallBack";
		public static final String DOWNLOADCALLBACK = "DownloadCallBack";
		public static final String WIFISTATECALLBACK = "WifiStateCallBack";
		public static final String BATTERYSTATECALLBACK = "BatteryCallBack";
		public static final String NOTCHCALLBACK = "NotchCallBack";
		public static final String OrientationCallBack = "OrientationCallBack";
		public static final String onRequestPermissionsResult = "onRequestPermissionsResult";		
	}
	
	private static final String  SDKMgr="SDKMgr";
		
	
	public static void SendMessage(String funString,String json)
	{
		UnityPlayer.UnitySendMessage(SDKMgr, funString, json);
	}
	
	public class SharePlatform
	{
		public static final int ShareWechat=1;
		public static final int ShareWechatMoments=ShareWechat+1;
		public static final int ShareSinaWeibo=ShareWechatMoments+1;
		public static final int ShareQQ=ShareSinaWeibo+1;
		public static final int ShareQZone=ShareQQ+1;
	}
	
	public class Channels
	{
		public static final int GooglePlay = 1;
		public static final int ZhiFuBao = 2;
		public static final int WangYin = 3;
		public static final int CaiFuTong = 4;
		public static final int YiDong = 5;
		public static final int LianTong = 6;
		public static final int DianXin = 7;
		public static final int Paypal = 8;
		public static final int WeiXin = 21;
	}

}